package cn.edu.sdjzu.xg.kcsj.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
@ToString
@Setter
@Getter
public class CourseArrangement implements Comparable<CourseArrangement>, Serializable {
    private Integer id;
    private String no;
    private String year;
    private String term;
    private String week;
    private String weekTime;
    private String section;
    private Course course;
    private StudentClass studentClass;
    private Classroom classroom;
    private Teacher teacher;

    public CourseArrangement(Integer id, String no, String year,String term,String week,String weekTime,
                             String section,Course course,StudentClass studentClass,Classroom classroom,Teacher teacher) {
        this.id = id;
        this.no = no;
        this.year = year;
        this.term = term;
        this.week = week;
        this.weekTime = weekTime;
        this.section = section;
        this.course = course;
        this.studentClass = studentClass;
        this.classroom = classroom;
        this.teacher = teacher;
    }
    @Override
    public int compareTo(CourseArrangement other) {
        // no为排序依据
        return this.no.compareTo(other.no);
    }
}
